//
//  FLImageView.h
//  Cat
//
//  Created by lushitong on 2018/12/19.
//  Copyright © 2018年 lushitong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIImageView+CornerRadius.h"

NS_ASSUME_NONNULL_BEGIN

@class FLImageView;

@protocol FLImageViewDelegate <NSObject>

- (void)clickImageView:(FLImageView *)headView;

@end

@interface FLImageView : UIImageView

@property (nonatomic, copy) NSString *url; // 自身会切圆角
@property (nonatomic, copy) NSString *urlNotHaveCircle; // 没有圆角
@property (nonatomic, copy) NSString *localImageName;
@property (nonatomic, strong) UIImage *loacalImage;

@property (nonatomic, weak) id<FLImageViewDelegate> delegate;

- (void)setImageUrl:(NSString *)url withBordWidth:(CGFloat)bordWidth andBordColorSting:(NSString *)colorString;
- (void)setImageUrl:(NSURL *)url size:(CGSize )size cornerRadius:(CGFloat)radius; // 适用于没有边框颜色
- (void)setImageUrl:(NSString *)url isFit:(BOOL)fit isHaveDefault:(BOOL)isDefaultImage cornerRadius:(CGFloat)radius; // 使用与contentMode


@end

NS_ASSUME_NONNULL_END
